//
//  OPKWebViewScriptMessageObject.h
//  YCOpenSDK
//
//  Created by ycgame on 2020/9/23.
//

#import <Foundation/Foundation.h>
#import <WebKit/WebKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol SCSWebViewScriptMessageDelegate <NSObject>
- (void)userContentController:(nonnull WKUserContentController *)userContentController didReceiveScriptMessage:(nonnull WKScriptMessage *)message;
@end

@interface SCSWebViewScriptMessageObject : NSObject<WKScriptMessageHandler>
@property(nonatomic, weak)id<SCSWebViewScriptMessageDelegate> delegate;
- (instancetype)initWithDelegate:(id<SCSWebViewScriptMessageDelegate>)delegate;
@end

NS_ASSUME_NONNULL_END
